{include file="public/header"}
<div class="page-content">
    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
        <div class="widget am-cf" style=" height: 500px;">
            <div class="widget-head am-cf">
                <div class="widget-title am-cf">历史订单</div>
            </div>
            <div class="widget-body am-fr">
                <div class="am-u-sm-12 am-u-md-6 am-u-lg-6">
                    <div class="am-form-group">
                    </div>
                </div>
                <div class="am-u-sm-12">
                    <table class="am-table am-table-compact am-table-striped tpl-table-black"id="dyntable">
                    <thead>
                        <tr>
                            <th class="head0 nosort"><input type="checkbox" class="checkall" /></th>
                            <th class="center">ID</th>
                            <th class="center">订单号</th>
                            <th class="center">订餐人</th>
                            <th class="center">送餐地址</th> 
                            <th class="center">订餐时间</th>
                            <th class="center">订单状态</th>
                            <th class="center">详情</th>
                        </tr>
                    </thead>
                    <tbody>
                        {volist name="data" id="vo"}
                            <tr class="gradeX">
                                <td class="aligncenter">
                                    <span class="center">
                                        <input type="checkbox" />
                                    </span>
                                </td>

                                <td class="center">{$vo.id}</td>
                                <td class="center">{$vo.form_number}</td>
                                <td class="center">{$vo.users.username}</td>
                                <td class="center">{$vo.users.address}</td>
                                <td class="center">{$vo.ftime}</td>
                                <td class="center">
                                            {if condition="$vo.status eq 3"}已过期
                                            {elseif condition="$vo.status eq 2 "/}已完成
                                            {else /} 进行中
                                            {/if}
                                </td>
                                <td class="center">
                                    <a href="{:url('Forms/details',['no'=>$vo.form_number])}">详情</a>
                                </td>
                            </tr>
                        {/volist}
                    </tbody>
                </table>
                    {$data->render()}
            </div>
        </div>
    </div>
    </div>

</div>

</body>
</html>